package com.restaurant.po;

public class MenuItem {
    private Integer id;
    private String name;
    private Double price;
    private String category;

    // 构造方法
    public MenuItem() {}

    public MenuItem(String name, Double price, String category) {
        this.name = name;
        this.price = price;
        this.category = category;
    }

    // Getter和Setter方法
    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }

    public String getName() { return name; }
    public void setName(String name) { this.name = name; }

    public Double getPrice() { return price; }
    public void setPrice(Double price) { this.price = price; }

    public String getCategory() { return category; }
    public void setCategory(String category) { this.category = category; }

    @Override
    public String toString() {
        return "MenuItem{id=" + id + ", name='" + name + "', price=" + price +
                ", category='" + category + "'}";
    }
}